<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试miniVue</title>
    <script src="./miniVue.js"></script>
</head>
<body>
    <div id="app">
        <p>{{counter}}</p>
        <p>{{test}}</p>
        <p>{{counter}}</p>
        <p v-text="counter"></p>
        <p v-html="test_h"></p>
    </div>
    <script>
        const app = new MiniVue({
            el:'#app',
            data:{
                counter:1,
                test:2,
                test_h:'<span style="color: red">haha</span>'
            }
        })
        setInterval(() =>{
            app.counter++;
        },1000)
    </script>
</body>
</html>
